﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace 对象案例剖析
{
    class Employee
    {
        public string Cname = "";
        public string Name = "";
        public string Number = "";

        public void IntroduceSelf()
        {
            Console.WriteLine("我是{0}公司的{1},工号为{2}",Cname,Name,Number);
        }
        public void Call(string customerName)
        {
            Console.WriteLine("给{0}打电话，我是{1}公司的{2}，工号为{3}", customerName, Cname,Name,Number);
        }
    }
    internal class Program
    {
        static void Main(string[] args)
        {
            Employee aQiang = new Employee();
            aQiang.Cname = "强盛集团";
            aQiang.Name = "阿强";
            aQiang.Number = "3035";

            aQiang.IntroduceSelf();
            aQiang.Call("13900001234");

            Employee aSheng = new Employee();
            aSheng.Cname = "强盛集团";
            aSheng.Name = "阿盛";
            aSheng.Number = "3001";

            aSheng.IntroduceSelf();
            aSheng.Call("13900004321");

            Console.Read();
        }
    }
}
